package com.indexingsystem.system.service;

import java.util.Map;
import java.util.Set;

import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.RoleOperations;

public interface IRoleOperationsService {

	int deleteByPrimaryKey(String roleOperationId) throws Exception;

	int deleteByRoleKey(String roleId) throws Exception;

	int insertSelective(RoleOperations record) throws Exception;

	PagedResult<RoleOperations> selectRoleOperationsList(Integer pageNo, Integer pageSize);

	RoleOperations selectByPrimaryKey(String roleOperationId);

	int updateByPrimaryKeySelective(RoleOperations record) throws Exception;

	/**
	 * 通过角色id查询功能及操作权限id.
	 * 
	 * @param roleId
	 * @return
	 */
	Set<String> getRoleOperationsByRoleId(String roleId);

	/**
	 * 通过功能id查询操作权限id集合.
	 * 
	 * @param functionId
	 * @return
	 */
	Set<String> getPermissionByFunctionIdOrRoleId(RoleOperations roleOperations);

	Integer updateByMapSelective(Map<String, Object> str);

	Integer updateByInMapSelective(Map<String, Object> str);
}